<?php

use \bee;
class authData extends bee\singleton
{ public $username;
  public $password;
  static protected $__instance;
  protected function __construct()
  { if(isset($_SERVER["HTTP_AUTHORIZATION"]))
    { $basicString = base64_decode(substr($_SERVER["HTTP_AUTHORIZATION"], 6));
      list($this->username, $this->password) = explode(":", $basicString);
    }
  }
}